import request from '@/utils/request'

export function insert(data) {
    return request({
        url: '/api/server/newMedia/insert',
        method: 'post',
        data: data
    })
}


export function queryByPage(data) {
    return request({
        url: '/api/server/newMedia/queryByPage',
        method: 'post',
        data: data
    })
}


export function update(data) {
    return request({
        url: '/api/server/newMedia/update',
        method: 'post',
        data: data
    })
}


export function deleteById(params) {
    return request({
        url: '/api/server/newMedia/deleteById',
        method: 'get',
        params: params
    })
}
